﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace QuanLyBus
{
    public partial class Them : PhoneApplicationPage
    {
        List<String> choose = new List<string>()
        {
            "Tuyến","Trạm","Trạm Thuộc Tuyến"
        };
        public Them()
        {
            InitializeComponent();
            lst_ds_cv.ItemsSource = choose;
        }

        private void lst_ds_cv_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string text = lst_ds_cv.SelectedItem as string;
            switch (text)
            {
                case "Tuyến":
                    this.NavigationService.Navigate(new Uri("/Them_tuyen_bus.xaml", UriKind.Relative));
                    break;
                case "Trạm":
                    this.NavigationService.Navigate(new Uri("/Them_tram_dung.xaml",UriKind.Relative));
                    break;
                case "Trạm Thuộc Tuyến":
                    this.NavigationService.Navigate(new Uri("/Them_tram_thuoc_tuyen.xaml", UriKind.Relative));
                    break;
                default:
                    break;
            }
        }
    }
}